package com.chennan.pattern.bridge.message;

import com.chennan.pattern.bridge.course.AbstractCource;
import com.chennan.pattern.bridge.course.INote;
import com.chennan.pattern.bridge.course.IVideo;

/**
 * @author chennan
 * @create 2021-10
 */
public abstract class AbstractMessage implements IMessage {

    private IMessage iMessage;

    public AbstractMessage(IMessage iMessage) {
        this.iMessage = iMessage;
    }

    @Override
    public void send(String message, String toUser) {
        iMessage.send(message,toUser);
    }
}
